﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace DOTNET_ASSIGNMENT.Models
{
    public class DatabaseInitializer : DropCreateDatabaseIfModelChanges<DataContext>
    {
        protected override void Seed(DataContext context)
        {
           // GetCustomers().ForEach(c => context.Customers.Add(c));
        }

        private List<Customer> GetCustomers()
        {
            var customers = new List<Customer>
            {
                new Customer
                {
                    Email = "genius24894@gmail.com",
                    ConfirmEmail = "genius24894@gmail.com",
                    Password = "123",
                    ConfirmPassword = "123",
                    Date = DateTime.Now.Date.ToString(),
                },
            };
            return customers;
        }

        private List<File> GetFiles()
        {
            var files = new List<File>
            {
                new File 
                {
                    CustomerEmail = "genius24894@gmail.com",
                    DisplayName = "123",
                    Extension = ".jpg",
                    URL = "13",
                    Size = "132",
                },
            };
            return files;
        }
    }
}